package framework.util.jdkExt;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author 吴宇亮 on 2019/10/30 0030 下午 2:25
 */
public class _TimeUtil {

    private _TimeUtil(){
    }

    public static String now(){
        return now("yyyy-MM-dd HH:mm:ss");
    }

    public static String now(String pattern){
        return LocalDateTime.now().format(DateTimeFormatter.ofPattern(pattern));
    }
}
